package com.zhentao.userLocal;

import com.zhentao.model.common.pojo.management.UserInfo;

/**
 * @ClassName: AdminUserThreadLocalUtils
 * @Author: muhaoyang1
 * @Date: 2025/1/3 16:25
 * @Comment:
 */
public class AdminUserThreadLocalUtils {
    private static final ThreadLocal<UserInfo> USER_INFO = new ThreadLocal<>();

    public static UserInfo getUserInfo() {
        return USER_INFO.get();
    }

    public static void setUserInfo(UserInfo userInfo) {
        USER_INFO.set(userInfo);
    }

}
